﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MadeInPortugal;

namespace MadeInPortugalWebApplication.WebControl
{
    public partial class SearchWC : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            Session["SearchString"] = tbxSearchString.Text;
            Session["SearchType"] = ddlSearchType.SelectedItem.Text;
            Response.Redirect("~/SearchResult.aspx");
        } 
    }
}